package com.bosssoft.goods.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 商品分类添加信息对象
 * @author Fang_Sir
 * @date 2021-04-12
 */
@Getter
@Setter
@ToString
public class EditCategoryVO {
    @ApiModelProperty("分类 ID")
    @NotNull(message = "分类编号不得为空")
    @JsonProperty("cat_id")
    private Integer id;

    @ApiModelProperty("分类名称")
    @NotNull(message = "分类名空")
    @JsonProperty("cat_name")
    private String name;

    @ApiModelProperty(value = "分类层级",allowableValues="0,1,2")
    @NotNull(message = "分类层级不得空")
    @JsonProperty("cat_level")
    private Integer level;
}
